﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Recruite.aspx.cs" Inherits="TeamPrasioliteWarGame.Recruite" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
    Recruit <strong>
        <asp:Label ID="LabelUnitName" runat="server"></asp:Label>
    </strong><br />
    You can recruit maximum: <strong>
        <asp:Label ID="LabelCanRecruit" runat="server"></asp:Label>
    </strong><br />

    <asp:TextBox ID="Units" runat="server"></asp:TextBox>
    <br />
    <asp:Button CssClass="btn btn-success" ID="ButtonSubmit" runat="server" Text="Submit" OnClick="ButtonSubmit_Click"></asp:Button>

    <br />
    <asp:RangeValidator 
        Type="Integer" ID="ValidatorRangeUnits" ErrorMessage="You don't have enough resources"
        ControlToValidate="Units" MinimumValue="0" runat="server" />
    <br />
    <asp:RegularExpressionValidator 
        ErrorMessage="You must enter a number." 
        ControlToValidate="Units" ValidationExpression="[0-9]+" runat="server" />
</asp:Content>